# apps/devices/urls.py
from django.urls import path
from .views import DeviceListView, DeviceDetailView, DeviceControlView

urlpatterns = [
    path('', DeviceListView.as_view(), name='device-list'),  # GET/POST /devices/
    path('<str:device_id>/', DeviceDetailView.as_view(), name='device-detail'),  # GET/PUT/DELETE /devices/<id>/
    path('<str:device_id>/control/', DeviceControlView.as_view(), name='device-control'),  # POST /devices/<id>/control/
]
